﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Golem.Indexer.Data
{
    public enum Protocol { Ftp, Samba }

    public class MachineDescriptor
    {
        public long Id { get; set; }
        public String IP { get; set; }
        public bool IsOnline { get; set; }
        public DateTime LastUpdateTime { get; set; }
        public String Hostname { get; set; }

        public MachineDescriptor(String ip)
        {
            this.IP = ip;
            this.IsOnline = false;
        }

        public override string ToString()
        {
            return String.Format("{0} - Indexed time: ", this.IP, LastUpdateTime.ToString());
        }
    }
}
